package com.coda.controller;

import com.coda.common.Result;
import com.coda.entity.Store;
import com.coda.service.StoreService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/warehouse/transshipment")
public class TransshipmentController {

    @Autowired
    private StoreService storeService;

    /**
     * 显示仓库列表
     */
    @GetMapping("/store-list")
    @ApiOperation("查询仓库列表")
    public Result storeList(){
        List<Store> storeList = storeService.getStoreList();
        return Result.ok(storeList);
    }
}
